package cn.itcast.com.Files;

import java.io.File;

public class Rename {
    public static void main(String[] args) {
        //D:\代码\代码\代码\cn\itcast\com\Files\a
        //D:\代码\代码\代码\cn\itcast\com\Files\b
        File file = new File("D:\\代码\\代码\\代码\\cn\\itcast\\com\\Files\\b\\asd.txt");
        File file1 = new File("D:\\代码\\代码\\代码\\cn\\itcast\\com\\Files\\a\\asd.txt");
        boolean b = file.renameTo(file1);
        System.out.println(b);
    }
}
